package cn.icanci.loopstack.amc.sample.model;

import java.util.StringJoiner;

/**
 * @author icanci
 * @since 1.0 Created in 2023/01/17 11:00
 */
public class Quota {
    String method = "ALL";
    String resourceType;
    String source;
    String prepayValidateCount;
    String bookCount;
    double conversionRate;

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getPrepayValidateCount() {
        return prepayValidateCount;
    }

    public void setPrepayValidateCount(String prepayValidateCount) {
        this.prepayValidateCount = prepayValidateCount;
    }

    public String getBookCount() {
        return bookCount;
    }

    public void setBookCount(String bookCount) {
        this.bookCount = bookCount;
    }

    public double getConversionRate() {
        return conversionRate;
    }

    public void setConversionRate(double conversionRate) {
        this.conversionRate = conversionRate;
    }

    @Override
    public String toString() {
        return new StringJoiner(",").add("method=" + method).add("resourceType=" + resourceType).add("source=" + source).add("prepayValidateCount=" + prepayValidateCount)
            .add("bookCount=" + bookCount).add("conversionRate=" + conversionRate).toString();
    }
}
